package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

@Mapper
public interface UserMapper {

    @Select("select * from  user where email = #{email}")
    User getByEmail(String email);
    /**
     * 注册新用户
     * @param user
     */
    void insertUser(User user);

    Integer countByMap(Map<String, Object> map);
}
